<?php

/**
 * PlayerTalent filter form.
 *
 * @package    raidpoints
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PlayerTalentFormFilter extends BasePlayerTalentFormFilter
{
  public function configure()
  {
        parent::configure();
        sfProjectConfiguration::getActive()->loadHelpers('Url');
        $this->widgetSchema['playerid'] = new sfWidgetFormDoctrineJQueryAutocompleter(array(
            'model' => $this->getRelatedModelName('Player'),
            'url' => url_for("ajax/player"),
        ));
        $this->widgetSchema['talentid'] = new sfWidgetFormDoctrineJQueryAutocompleter(array(
            'model' => $this->getRelatedModelName('Talent'),
            'url' => url_for("ajax/talent"),
        ));
  }
}
